<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ctlDatosFamiliares.ascx.vb" Inherits="Pages_Controls_ctlDatosFamiliares" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
   <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <asp:HyperLink ID="NuevoFamiliarHyperLink" runat="server" NavigateUrl="~/Pages/frmFamiliarNuevo.aspx"
            onclick="window.open (this.href, 'popupwindow', 'width=800,height=600,left=300,top=300'); return false;"
            TabIndex="1" Text="Nuevo" Visible="False"></asp:HyperLink><br />
        <asp:ImageButton ID="imgNuevo" runat="server" ImageUrl="~/Images/icons/page_2.png"
            OnClick="imgNuevo_Click" ToolTip="Nuevo" /><br />
        <dx:ASPxGridView ID="gridFamiliares" runat="server" AutoGenerateColumns="False" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
            CssPostfix="Youthful" DataSourceID="ObjectDataSourceFamiliares" KeyFieldName="TB_SOC_ESI_Familiar_ID" Caption="Lista de Familiares" Width="80%">
            <Styles CssFilePath="~/App_Themes/Youthful/{0}/styles.css" CssPostfix="Youthful">
                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                </Header>
                <LoadingPanel ImageSpacing="10px">
                </LoadingPanel>
            </Styles>
            <SettingsLoadingPanel Text="" />
            <ImagesFilterControl>
                <LoadingPanel Url="~/App_Themes/Youthful/Editors/Loading.gif">
                </LoadingPanel>
            </ImagesFilterControl>
            <Images SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css">
                <LoadingPanelOnStatusBar Url="~/App_Themes/Youthful/GridView/gvLoadingOnStatusBar.gif">
                </LoadingPanelOnStatusBar>
                <LoadingPanel Url="~/App_Themes/Youthful/GridView/Loading.gif">
                </LoadingPanel>
            </Images>
            <Columns>
                <dx:GridViewDataDateColumn FieldName="fecha_inscripcion" Visible="False" VisibleIndex="0">
                </dx:GridViewDataDateColumn>
                <dx:GridViewDataTextColumn FieldName="TB_SOC_ESI_Parentesco_ID" Visible="False" VisibleIndex="0">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="TB_SOC_ESI_Titular_ID" Visible="False" VisibleIndex="1">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="TB_SOC_ESI_Persona_ID" Visible="False" VisibleIndex="2">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="codParentesco" Visible="False" VisibleIndex="3">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Parentesco" FieldName="descripcion" VisibleIndex="0">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Codigo" FieldName="codPersona" VisibleIndex="1">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Nombre" FieldName="nombres" VisibleIndex="2">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Apellido Paterno" FieldName="apellidoPaterno"
                    VisibleIndex="3">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Apellido Materno" FieldName="apellidoMaterno"
                    VisibleIndex="4">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataDateColumn Caption="Fecha Nacimiento" FieldName="fechaNacimiento"
                    VisibleIndex="5">
                </dx:GridViewDataDateColumn>
                <dx:GridViewDataTextColumn Caption="Tipo Documento" FieldName="tipoDocumento" VisibleIndex="6">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="N&#250;mero" FieldName="nroDocumento" VisibleIndex="7">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Sexo" FieldName="sexo" VisibleIndex="8">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Estado" FieldName="estadoPersona" Visible="False"
                    VisibleIndex="9">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Ingreso Mensual" FieldName="IngresoMensual" Visible="False"
                    VisibleIndex="9">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataHyperLinkColumn Caption="Editar" FieldName="TB_SOC_ESI_Familiar_ID" ReadOnly="True"
                    VisibleIndex="9">
                    <PropertiesHyperLinkEdit ImageUrl="~/Images/icons/page_white_edit.png" NavigateUrlFormatString="~/Pages/frmFichaFamiliar.aspx?KEY={0}&amp;F=I">
                    </PropertiesHyperLinkEdit>
                    <EditFormSettings Visible="False" />
                    <Settings AllowAutoFilter="False" />
                </dx:GridViewDataHyperLinkColumn>
            </Columns>
            <StylesEditors>
                <CalendarHeader Spacing="8px">
                </CalendarHeader>
                <ProgressBar Height="25px">
                </ProgressBar>
            </StylesEditors>
            <Settings ShowFilterRow="True" />
        </dx:ASPxGridView>
        <br />
        &nbsp;<br />
        <asp:ObjectDataSource ID="ObjectDataSourceFamiliares" runat="server" OldValuesParameterFormatString="original_{0}"
            SelectMethod="GetData" TypeName="FichaIncripcionTableAdapters.sp_TB_SOC_ESI_Familiar_SelectAllTableAdapter">
            <SelectParameters>
                <asp:SessionParameter DefaultValue="0" Name="TB_SOC_ESI_Titular_ID" SessionField="TitularID"
                    Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </ContentTemplate>
</asp:UpdatePanel>
